package ru.teleology.cubefs.api.reflection.list.array;

import ru.teleology.cubefs.api.reflection.NativeType;
import ru.teleology.cubefs.api.reflection.Types;

@NativeType(name = Types.BYTE_ARRAY_TYPE)
public class ByteArray extends ArrayBase<Byte> {
	
	public ByteArray(long handle, boolean weak) {
		super(handle, weak);
	}

	public ByteArray(long handle) {
		super(handle);
	}
	
	public byte GetValue(int idx) {
		return GetValue(getHandle(), idx);
	}
	
	public void SetValue(int idx, byte value) {
		SetValue(getHandle(), idx, value);
	}

	
	public void Insert(int idx, byte value) {
		Insert(getHandle(), idx, value);
	}
	
	public void Insert(int idx, ByteArray values, int start, int length) {
		super.Insert(idx, values, start, length);
	}
	
	private static native byte GetValue(long me, int idx);
	private static native void SetValue(long me, int idx, byte value);
	private static native void Insert(long me, int idx, byte value);
}
